inputs

object inputs : Delegatable, ReadOnlyProperty<Any?, String>

Accessors for input variables.

Can be delegated from. Property names will be converted to snake-case unless name is specified. Delegating from inputs treats the input as required.

Functions

contains
Link copied to clipboard
open operator fun contains(name: String): Boolean
get
Link copied to clipboard
operator fun get(name: String): String?
Get the input passed for name.
getOptional
Link copied to clipboard
open override fun getOptional(name: String): String?
Get the input passed for name, or throws an error if it was not passed.
getOrElse
Link copied to clipboard
fun getOrElse(name: String, default: () -> String): String
Get the input passed for name, or default if it was not passed.
getRequired
Link copied to clipboard
open override fun getRequired(name: String): String
Get the input passed for name, or throws an error if it was not passed.
getValue
Link copied to clipboard
open operator override fun getValue(thisRef: Any?, property: KProperty<*>): String
A delegate based on the property name converted to snake case, for a required input.
invoke
Link copied to clipboard
operator fun invoke(name: String): ReadOnlyProperty<Any?, String>
Get a delegate for name.
optional
Link copied to clipboard
fun optional(name: String): ReadOnlyProperty<Any?, String?>
Get an optional delegate for name.
optionalWithDefault
Link copied to clipboard
fun optionalWithDefault(default: () -> String): ReadOnlyProperty<Any?, String>
Get an optional delegate with a default value.
fun optionalWithDefault(name: String, default: () -> String): ReadOnlyProperty<Any?, String>
Get an optional delegate with a default value for name.

Properties

optional
Link copied to clipboard
val optional: ReadOnlyProperty<Any?, String?>
Get an optional delegate.

Sources

js source
Link copied to clipboard